// 自己封装路由表路由的属性想叫啥叫啥，名字都是自己定义的
import {lazy} from "react"
const routerCongfig = [
    {
        path:"/home",
        element:lazy(()=>import("../pages/home")),
        children:[
            {
                path:"/home/homeson",
                element:lazy(()=>import("../pages/homeson"))
            }
        ]
    },
    {
        path:"/login",
        element:lazy(()=>import("../pages/Login"))
    },
    {
        path:"/piecharts",
        element:lazy(()=>import("../pages/piecharts"))
    },
    {
        from :"/",
        to:"/login"
    }
]
export default routerCongfig